package com.aramis.mydytt.ui.base

import androidx.lifecycle.ViewModel
import com.aramis.mydytt.api.DyttApi
import com.aramis.mydytt.api.MovieApi
import io.reactivex.disposables.CompositeDisposable

/**
 * Description: BaseViewModel
 * @author lizhidan
 * Created: 2021/4/6
 */
open class BaseViewModel : ViewModel() {
    protected val compositeDisposable = CompositeDisposable()
    protected val movieApi: MovieApi = Net.movieApi!!
    protected val dyttApi: DyttApi = Net.dyttApi!!

    override fun onCleared() {
        super.onCleared()
        compositeDisposable.clear()
    }
}